package edu.whu.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import edu.whu.demo.domain.Commodity;
import edu.whu.demo.domain.Supplier;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.whu.demo.exception.ProductAdminException;
import org.jetbrains.annotations.NotNull;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yang hengyi
 * @since 2022-10-24
 */
public interface ISupplierService extends IService<Supplier> {

    Supplier addSupplier(@NotNull Supplier supplier);

    Supplier updateSupplier(@NotNull Supplier supplier) throws ProductAdminException;

    void deleteSupplier(Long id) throws ProductAdminException;

    //List<Supplier> batchGetSuppliers(Collection<Long> ids);

    //void batchDeleteSuppliers(Collection<Long> ids);

    Page<Supplier> findSuppliers(String name, String tel, @NotNull Page page);
}
